<?php
/**
 * Created by PhpStorm.
 * User: alexey
 * Date: 5/18/14
 * Time: 1:19 PM
 */

include_once("ReleasedActionFinder.php");
include_once("functions/db_manipulate.php");

$action = '';
$redirect = '';
if (isset($_GET['action'])) {
  $action = $_GET['action'];
  $redirect = $_GET['action'];
} else {
  $action = 'index';
}

$actionFinder = new \controller\ReleasedActionFinder();

$action = $actionFinder->getAction($action);
if (!$action) {
  $actionFinder->redirect($redirect, $_SERVER['QUERY_STRING']);
}

include_once($action);
